sendEventForVirtualView
Populates an event of the specified type with information about an item and attempts to send it up through the view hierarchy.
You should call this method after performing a user action that normally fires an accessibility event, such as clicking on an item.
public void performItemClick(T item) {
...
sendEventForVirtualViewId(item.id, AccessibilityEvent.TYPE_VIEW_CLICKED);
}
Content copied to clipboard
Return
true
if the event was sent successfully, false
otherwise
Parameters
virtualViewId
the identifier of the virtual view for which to send an event
eventType
the type of event to send